package io;


import java.io.*;

//按字符进行数据读  数据写
public class Demo10 {
    public static void main(String[] args) throws IOException {
//        try (Reader reader = new FileReader("Demo.txt")) {
//            while (true) {
//                int c = reader.read();
//                if (c == -1) {
//                    break;
//                }
//                char ch = (char) c;
//                System.out.print(ch);
//            }
//            //System.out.println();
//        }

        try (Writer writer = new FileWriter("Demo.txt",true)){
            writer.write("你好中国~~~");
        }
    }
}
